public class School{
    //属性
    private String name;
    //private String library;私有属性,没有共享的特点
    //2.静态成员变量初始化方法-静态代码块
    static{
        library = "栋梁图书馆-静态代码块";
    }
    //1.静态成员变量初始化方法一-显示代码块
    public static String library="共建图书馆";//公共属性
    
    
    private int num;
    //方法
    public void show(){
        System.out.println("学校名称:"+name);
        System.out.println("图书馆:"+library);
        System.out.println("学生人数:"+num);
    }
    //构造器
    public School(){
    }
    //全参构造器
    public School(String name,String library,int num){
        this.name = name;
        this.library = library;
        this.num = num;
    }

}